// ProfileIni.h: interface for the CProfileIni class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PROFILEINI_H__DCA88CDD_EB6D_4083_ACAD_EE8D4DE65027__INCLUDED_)
#define AFX_PROFILEINI_H__DCA88CDD_EB6D_4083_ACAD_EE8D4DE65027__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//#define PROFILE_FILENAME    "game"

class CProfileIni  
{
private:
    CString m_szFileName;
	CString m_szFullPath ; 
	int GetIniFileFullPath(CString& pszInifFileFullPath);
public:
	CProfileIni();
	CProfileIni(CString pszFileFullPath, BOOL bFullPath=FALSE);
	virtual ~CProfileIni();
	void SetFileFullPath(CString filepath, BOOL bFullPath=FALSE);   


	int SetInt(CString pszSectionName, CString pszKeyName, int nValue);
    int GetInt(CString pszSectionName, CString pszKeyName);

	int SetFloat(CString pszSectionName, CString pszKeyName, float dValue);
    float GetFloat(CString pszSectionName, CString pszKeyName);

	int SetString(CString pszSectionName,CString pszKeyName,CString pszBuffer);		
	int GetString(CString pszSectionName, CString pszKeyName, CString& szBuffer, BOOL msg=FALSE);
};

#endif // !defined(AFX_PROFILEINI_H__DCA88CDD_EB6D_4083_ACAD_EE8D4DE65027__INCLUDED_)
